package com.zhang.modules.dict.entity.cmd;

import com.zhang.common.jpa.entity.AddCmd;
import com.zhang.modules.dict.entity.DictData;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * A DTO for the {@link DictData} entity
 */
@Data
public class AddDataCmd implements Serializable, AddCmd {
    @Size(max = 100)
    @NotBlank(message = "字典标签不能为空")
    private  String dictLabel;
    @Size(max = 100)
    @NotBlank(message = "字典键值不能为空")
    private  String dictValue;
    @Size(max = 100)
    @NotBlank(message = "字典类型不能为空")
    private  String dictType;
    @Size(max = 100)
    private  String cssClass;
    private  Character status;
    @Size(max = 500)
    private  String remark;
}